package com.neu.pojo;

public class RoomRecord {
	private Room room;//房间
	private Patient patient;//患者
	private String beginTime;//入住时间
	private String overTime;//搬出时间
	
	//构造
	public RoomRecord() {
		super();
	}
	public RoomRecord(Room room, Patient patient, String beginTime, String overTime) {
		super();
		this.room = room;
		this.patient = patient;
		this.beginTime = beginTime;
		this.overTime = overTime;
	}

	//set and get
	public Room getRoom() {
		return room;
	}
	public void setRoom(Room room) {
		this.room = room;
	}
	public Patient getPatient() {
		return patient;
	}
	public void setPatient(Patient patient) {
		this.patient = patient;
	}
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getOverTime() {
		return overTime;
	}
	public void setOverTime(String overTime) {
		this.overTime = overTime;
	}
	@Override
	public String toString() {
		return "{\"room\":\"" + room + "\",\"patient\":\"" + patient + "\",\"beginTime\":\"" + beginTime
				+ "\",\"overTime\":\"" + overTime + "\"}";
	}
}
